package com.dk.mapper;

import com.dk.pojo.PositionMenu;
import com.dk.pojo.PositionMenuExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PositionMenuMapper {
    int countByExample(PositionMenuExample example);

    int deleteByExample(PositionMenuExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PositionMenu record);

    int insertSelective(PositionMenu record);

    List<PositionMenu> selectByExample(PositionMenuExample example);

    PositionMenu selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") PositionMenu record, @Param("example") PositionMenuExample example);

    int updateByExample(@Param("record") PositionMenu record, @Param("example") PositionMenuExample example);

    int updateByPrimaryKeySelective(PositionMenu record);

    int updateByPrimaryKey(PositionMenu record);

    void insertById(@Param("positionId") Integer positionId, @Param("nodeIds") Integer[] nodeIds);

    List<Integer> selectById(Integer positionId);
}